package com.ct.ah.lab.service.impl;

import com.ct.ah.lab.dao.AnnouncementDao;
import com.ct.ah.lab.entity.Announcement;
import com.ct.ah.lab.service.IAnnouncemenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service("AnnouncemenService")
public class AnnouncemenServiceImpl implements IAnnouncemenService {
    @Autowired
    private AnnouncementDao announcementDao;

    @Override
    public List<Announcement> list(Integer num){
        List<Announcement> list = new ArrayList<>();
        list =  announcementDao.list(num);
        return list;
    }
}
